'''
Created on Aug 9, 2009

@author: kage
'''

import os

dir = "../"

for x in os.listdir(dir):
    if ".ui.py" in x:
        y = x.replace(".ui.py", ".py")
        if os.path.exists(os.path.join(dir, y)):
            os.remove(os.path.join(dir, y))
        os.rename(os.path.join(dir, x), os.path.join(dir, y))
